import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Fizz Pu
 * @Date 2021/3/10 上午10:02
 * @Version 1.0
 * 失之毫厘，缪之千里！
 */



public class DeleteMiddleNode {
    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>(2, 0.75f);
        map.put(5, "c");

        new Thread(() -> {
            map.put(7, "B");
            System.out.println(map);
        }, "Thread").start();

        new Thread(() -> {
            map.put(3, "A");
            System.out.println(map);
        }).start();
    }
}
